package com.yonyougov.devops.monitor.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;
import java.util.List;

@Data
@Document(indexName = "monitor_info_server", type = "server_info")
public class ServerInfo {
    @Field(type = FieldType.Text)
    private String os;
    @Id
    private String hostname;
    @Field(type = FieldType.Text)
    private String kernelVersion;
    @Field(type = FieldType.Text)
    private String hardArch;
    @Field(type = FieldType.Date)
    private Date date;
}
